package com.ld.hpfs.pojo;
import java.util.Date;

import com.ld.hpfs.common.utils.Entity;
//明细表
public class IdDetail extends Entity {

	private Integer detailId; // 主表内部序号
	private Integer headId; // 主表内部序号
	private String document_no; // 单据编码
	private Integer company_id; // 公司ID
	private Integer goods_line; // 商品行号
	private String goods_code; // 商品编码
	private String goods_name; // 商品中文名称
	private String goods_unit; // 商品单位
	private String spec; // 规格型号
	private String tax_item; // 税目
	private double tax_rate; // 税率
	private double tax_amount; // 税额
	private double quantity; // 数量
	private double price_cur; // 本币单价
	private double amount_cur; // 本币金额
	private String remark; // 备注
	private double discount_sum; // 折扣金额
	private double discount_tax; // 折扣税额
	private double discount_rate; // 折扣率
	private short price_way; // 计价方式 0:不含税 1:含税
	private Short splitMethod;//splitMethod  1  按单价 0  按数量
	private double id_head_id;
	private String import_code;
	public static final int PRICE_WAY_EXCLUDING_TAX = 0;
    public static final int PRICE_WAY_INCLUDING_TAX = 1;
    
    public static final short NOT_DETAIL_MERGED = 0;
    public static final short IS_DETAIL_MERGED = 1;
	
	public Short getSplitMethod() {
		return splitMethod;
	}

	public void setSplitMethod(Short splitMethod) {
		this.splitMethod = splitMethod;
	}
	private String ref01; // 参考字段01
	private String ref02; // 参考字段02
	private String ref03; // 参考字段03
	private String ref04; // 参考字段04
	private String ref05; // 参考字段05
	private String ref06; // 参考字段06
	private String ref07; // 参考字段07
	private String ref08; // 参考字段08
	private String ref09; // 参考字段09
	private String ref10; // 参考字段10
	private String ref11; // 参考字段11
	private String ref12; // 参考字段12
	private String ref13; // 参考字段13
	private String ref14; // 参考字段14
	private String ref15; // 参考字段15
	private String ref16; // 参考字段16
	private String ref17; // 参考字段17
	private String ref18; // 参考字段18
	private String ref19; // 参考字段19
	private String ref20; // 参考字段20

	private Integer update_id;           // 更新人ID
    private String update_name;       // 更新人名字
    private Date update_time;          // 更新时间
    
    public Integer getDetailId() {
		return detailId;
	}

	public void setDetailId(Integer detailId) {
		this.detailId = detailId;
	}
	
	public Integer getHeadId() {
		return headId;
	}

	public void setHeadId(Integer headId) {
		this.headId = headId;
	}

	public String getDocument_no() {
		return document_no;
	}

	public void setDocument_no(String document_no) {
		this.document_no = document_no;
	}

	public Integer getCompany_id() {
		return company_id;
	}

	public void setCompany_id(Integer company_id) {
		this.company_id = company_id;
	}

	public Integer getGoods_line() {
		return goods_line;
	}

	public void setGoods_line(Integer goods_line) {
		this.goods_line = goods_line;
	}

	public String getGoods_code() {
		return goods_code;
	}

	public void setGoods_code(String goods_code) {
		this.goods_code = goods_code;
	}

	public String getGoods_name() {
		return goods_name;
	}

	public void setGoods_name(String goods_name) {
		this.goods_name = goods_name;
	}

	public String getGoods_unit() {
		return goods_unit;
	}

	public void setGoods_unit(String goods_unit) {
		this.goods_unit = goods_unit;
	}

	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	public String getTax_item() {
		return tax_item;
	}

	public void setTax_item(String tax_item) {
		this.tax_item = tax_item;
	}

	public double getTax_rate() {
		return tax_rate;
	}

	public void setTax_rate(double tax_rate) {
		this.tax_rate = tax_rate;
	}

	public double getTax_amount() {
		return tax_amount;
	}

	public void setTax_amount(double tax_amount) {
		this.tax_amount = tax_amount;
	}

	public double getQuantity() {
		return quantity;
	}

	public void setQuantity(double quantity) {
		this.quantity = quantity;
	}

	public double getPrice_cur() {
		return price_cur;
	}

	public void setPrice_cur(double price_cur) {
		this.price_cur = price_cur;
	}

	public double getAmount_cur() {
		return amount_cur;
	}

	public void setAmount_cur(double amount_cur) {
		this.amount_cur = amount_cur;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public double getDiscount_sum() {
		return discount_sum;
	}

	public void setDiscount_sum(double discount_sum) {
		this.discount_sum = discount_sum;
	}

	public double getDiscount_tax() {
		return discount_tax;
	}

	public void setDiscount_tax(double discount_tax) {
		this.discount_tax = discount_tax;
	}

	public double getDiscount_rate() {
		return discount_rate;
	}

	public void setDiscount_rate(double discount_rate) {
		this.discount_rate = discount_rate;
	}

	public short getPrice_way() {
		return price_way;
	}

	public void setPrice_way(short price_way) {
		this.price_way = price_way;
	}

	public String getRef01() {
		return ref01;
	}

	public void setRef01(String ref01) {
		this.ref01 = ref01;
	}

	public String getRef02() {
		return ref02;
	}

	public void setRef02(String ref02) {
		this.ref02 = ref02;
	}

	public String getRef03() {
		return ref03;
	}

	public void setRef03(String ref03) {
		this.ref03 = ref03;
	}

	public String getRef04() {
		return ref04;
	}

	public void setRef04(String ref04) {
		this.ref04 = ref04;
	}

	public String getRef05() {
		return ref05;
	}

	public void setRef05(String ref05) {
		this.ref05 = ref05;
	}

	public String getRef06() {
		return ref06;
	}

	public void setRef06(String ref06) {
		this.ref06 = ref06;
	}

	public String getRef07() {
		return ref07;
	}

	public void setRef07(String ref07) {
		this.ref07 = ref07;
	}

	public String getRef08() {
		return ref08;
	}

	public void setRef08(String ref08) {
		this.ref08 = ref08;
	}

	public String getRef09() {
		return ref09;
	}

	public void setRef09(String ref09) {
		this.ref09 = ref09;
	}

	public String getRef10() {
		return ref10;
	}

	public void setRef10(String ref10) {
		this.ref10 = ref10;
	}

	public String getRef11() {
		return ref11;
	}

	public void setRef11(String ref11) {
		this.ref11 = ref11;
	}

	public String getRef12() {
		return ref12;
	}

	public void setRef12(String ref12) {
		this.ref12 = ref12;
	}

	public String getRef13() {
		return ref13;
	}

	public void setRef13(String ref13) {
		this.ref13 = ref13;
	}

	public String getRef14() {
		return ref14;
	}

	public void setRef14(String ref14) {
		this.ref14 = ref14;
	}

	public String getRef15() {
		return ref15;
	}

	public void setRef15(String ref15) {
		this.ref15 = ref15;
	}

	public String getRef16() {
		return ref16;
	}

	public void setRef16(String ref16) {
		this.ref16 = ref16;
	}

	public String getRef17() {
		return ref17;
	}

	public void setRef17(String ref17) {
		this.ref17 = ref17;
	}

	public String getRef18() {
		return ref18;
	}

	public void setRef18(String ref18) {
		this.ref18 = ref18;
	}

	public String getRef19() {
		return ref19;
	}

	public void setRef19(String ref19) {
		this.ref19 = ref19;
	}

	public String getRef20() {
		return ref20;
	}

	public void setRef20(String ref20) {
		this.ref20 = ref20;
	}
	
    public Integer getUpdate_id() {
		return update_id;
	}

	public void setUpdate_id(Integer update_id) {
		this.update_id = update_id;
	}

	public String getUpdate_name() {
		return update_name;
	}

	public void setUpdate_name(String update_name) {
		this.update_name = update_name;
	}

	public Date getUpdate_time() {
		return update_time;
	}

	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}
	// 合并明细 的 5 个条件
		public final static String price_Cur = "priceCur";
		public final static String quantity_ = "quantity";
		public final static String goods_name_chn = "goodsNameChn";
		public final static String spec_ = "spec";
		public final static String weight_unit = "weightUnit";
		//按数量
		public final static short splitMethod0=0;
		//按单价
		public final static short splitMethod1=1;

		public final static int  priceWay0=0;
		public final static int priceWay1=1;
	@Override
	public Object clone()  {
		return super.clone();
	}

	public double getId_head_id() {
		return id_head_id;
	}

	public void setId_head_id(double id_head_id) {
		this.id_head_id = id_head_id;
	}

	public String getImport_code() {
		return import_code;
	}

	public void setImport_code(String import_code) {
		this.import_code = import_code;
	}
}
